from applications.view.system import register_system_bps
from applications.extensions.init_plugins import broadcast_execute
from applications.view.bigscreen.bigscreen import bp as bigscreen_bp
from applications.view.module.module import bp as module_bp
from applications.view.dataManagement.affected.affected import bp as affected_bp
from applications.view.dataManagement.planting.planting import bp as planting_bp
from applications.view.dataManagement.agricultural.agricultural import bp as agricultural_bp


def init_bps(app):
    register_system_bps(app)
    app.register_blueprint(bigscreen_bp)
    app.register_blueprint(module_bp)
    app.register_blueprint(affected_bp)
    app.register_blueprint(planting_bp)
    app.register_blueprint(agricultural_bp)

    # 插件初始化函数
    broadcast_execute(app, 'event_init')
